<script lang="ts" setup>
import { h, reactive } from 'vue'
import XyIcon from '@/components/XyIcon'
const formList = reactive<FormList>([
  {
    label: '时间选择器插槽',
    prop: 'time3',
    type: 'time',
    defaultValue: new Date(2022, 12, 12, 10, 10, 10),
    prefixIcon: h(XyIcon, { icon: 'ep:edit' })
  }
])
const submitForm = (formData: any) => {
  console.log(formData)
}
</script>
<template>
  <XyAddForm isCard :formList="formList" @submit-form="submitForm" />
</template>
